package com.csw.encryptiontechnology.controller;

import com.csw.encryptiontechnology.utils.AesUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("aes")
public class AESTest {

	@RequestMapping("doResponse")

	public void doResponse(HttpServletRequest request) throws Exception {
		String username = request.getParameter("username");
		String userName2 = AesUtil.decrypt(username);// 对比
	}
}
